package com.tbit.uqbike.object.pojo.vo;

import com.tbit.common.entity.view.PageResult;

import java.math.BigDecimal;

/**
 * 欠款收支情况
 *
 * @Author:yanlun
 * @DATE: 2022/11/18
 */
public class AccountDayStatArrearsVo {

    /**
     * 本期欠款/欠款补交
     */
    private IncomeExpendDetailVo arrears;
    /**
     * 期初总额
     */
    private BigDecimal termStart;
    /**
     * 期末总额
     */
    private BigDecimal termEnd;
    /**
     * 数据列表
     */
    private PageResult<AccountDayStatArrearsDetailVO> pageList;

    public IncomeExpendDetailVo getArrears() {
        return arrears;
    }

    public void setArrears(IncomeExpendDetailVo arrears) {
        this.arrears = arrears;
    }

    public BigDecimal getTermStart() {
        return termStart == null ? null : termStart.setScale(2, BigDecimal.ROUND_HALF_UP);
    }

    public void setTermStart(BigDecimal termStart) {
        this.termStart = termStart;
    }

    public BigDecimal getTermEnd() {
        return termEnd == null ? null : termEnd.setScale(2, BigDecimal.ROUND_HALF_UP);
    }

    public void setTermEnd(BigDecimal termEnd) {
        this.termEnd = termEnd;
    }

    public PageResult<AccountDayStatArrearsDetailVO> getPageList() {
        return pageList;
    }

    public void setPageList(PageResult<AccountDayStatArrearsDetailVO> pageList) {
        this.pageList = pageList;
    }
}
